package org.erp.procurement.entity.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.erp.common.page.PageReq;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 线上小程序订单查询请求实体
 *
 * @author libin
 * @version 1.0
 * @description: 线上小程序订单查询请求实体
 * @date 2025/11/5 14:56
 **/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class MiniOrderQueryBo extends PageReq {
    /**
     * 订单编号
     */
    private String orderNo;
    /**
     * 售卖人名称
     */
    private String sellName;
    /**
     * 快递单号
     */
    private String trackingNumber;
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 仓库id
     */
    private Long storeId;
    /**
     * 订单状态
     */
    private Integer status;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

}
